/**
 * Created by shaotingzhou on 2017/5/10.
 */
// 下载情况的中部 使用情况的中部
import React, { Component } from 'react';
import {
    AppRegistry,
    StyleSheet,
    Text,
    View,
    Image
} from 'react-native';

export default class DownloadInfoItem extends Component {
    render() {
        if(this.props.champion == true){
            return (
                <View style={{marginBottom:1,backgroundColor:'white',flexDirection:'row',height:40, alignItems:'center'}}>
                    <Text style={{marginLeft:5,}}>{this.props.leftTxt}</Text>
                    <Text style={{marginLeft:5,fontSize:12,color:'#BDBDBD'}}>{this.props.rightTxt}</Text>
                    <Image source={require('../../image/奖杯.png')} style={{width:20,height:15,position:'absolute',right:10}} />
                </View>
            );
        }else {
            return (
                <View style={{marginBottom:1,backgroundColor:'white',flexDirection:'row',height:40, alignItems:'center'}}>
                    <Text style={{marginLeft:5,}}>{this.props.leftTxt}</Text>
                    <Text style={{marginLeft:5,fontSize:12,color:'#BDBDBD'}}>{this.props.rightTxt}</Text>
                </View>
            );
        }

    }
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
    }
});